import cryptoCore from '/common/utils/cryptoCore';
import CryptoJS from '/common/utils/cryptoSha1';

export const pswSha1 = (values) => {
  let { username, password } = values;
  var ciphertext = username.toLowerCase() + password;
  for (var i = 0; i < 1024; i++) {
    ciphertext = cryptoCore.SHA1(ciphertext);
  }
  return ciphertext.toString();
};
